import { Global, Module } from '@nestjs/common';
import { LikeService } from './like.service';
import { LikeController } from './like.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Blog } from '../blog/entities/blog.entity';
import { Like } from './entities/like.entity';

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([Like, Blog])],
  controllers: [LikeController],
  providers: [LikeService],
  exports: [LikeService] // export出去，其他模块才能引用
})
export class LikeModule {}
